package com.smedi.ismedi.authoritymanagement.core.application.service;

import com.smedi.ismedi.authoritymanagement.core.application.command.RoleBasicCommand;
import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.RoleBasic;

import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-7-14 10:53
 */
public interface RoleBasicApplicationService {
    RoleBasic saveRoleBasic(RoleBasicCommand roleBasicCommand);

    List<RoleBasic> batchSaveRoleBasic(List<RoleBasicCommand> roleBasicCommands);

    void deleteRoleBasic(Long roleId);

    void batchDeleteRoleBasics(List<Long> roleIds);

    void batchSaveOneRoleForMultiPerson(Long roleId, List<Long> personIds);

    void batchSaveMultiRoleForOnePerson(List<Long> roleIds, Long personId);

    void deleteRoleMemberByRoleMemberId(Long roleMemberId);
}
